package com.itheima.pojo;

public class Cart {
    private Long id; // 修改字段类型为 Long
    private String item_id;
    private String item_name;
    private String spec;
    private Double price; // 修改字段类型为 Double
    private Double real_price; // 修改字段类型为 Double
    private Integer count; // 修改字段类型为 Integer

    public Cart() {
        // 默认无参构造函数
    }

    public Cart(Long id, String item_id, String item_name, String spec, Double price, Double real_price, Integer count) {
        this.id = id;
        this.item_id = item_id;
        this.item_name = item_name;
        this.spec = spec;
        this.price = price;
        this.real_price = real_price;
        this.count = count;
    }

    public void setId(Long id) { // 修改参数类型为 Long
        this.id = id;
    }

    public void setItem_id(String item_id) {
        this.item_id = item_id;
    }

    public void setItem_name(String item_name) {
        this.item_name = item_name;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public void setPrice(Double price) { // 修改参数类型为 Double
        this.price = price;
    }

    public void setReal_price(Double real_price) { // 修改参数类型为 Double
        this.real_price = real_price;
    }

    public void setCount(Integer count) { // 修改参数类型为 Integer
        this.count = count;
    }

    public Long getId() { // 修改返回类型为 Long
        return id;
    }

    public String getItem_id() {
        return item_id;
    }

    public String getItem_name() {
        return item_name;
    }

    public String getSpec() {
        return spec;
    }

    public Double getPrice() { // 修改返回类型为 Double
        return price;
    }

    public Double getReal_price() { // 修改返回类型为 Double
        return real_price;
    }

    public Integer getCount() { // 修改返回类型为 Integer
        return count;
    }
}